package com.hafu.service;

import com.hafu.dao.KhInfoDao;
import com.hafu.model.KhInfo;
import java.util.ArrayList;

public class KhInfoService {
    private KhInfoDao khInfoDao=new KhInfoDao();
    public Boolean addKhInfo(KhInfo kh)
    {
        Boolean aBoolean = khInfoDao.addKhInfo(kh);
        return aBoolean;
    }
    public Boolean deleteKhInfo(int id)
    {
        Boolean aBoolean = khInfoDao.deleteKhInfo(id);
        return aBoolean;
    }
    public ArrayList<KhInfo> getKhInfoByName(KhInfo kh)
        {
            ArrayList<KhInfo> khInfos = khInfoDao.getKhInfoByName(kh);
            return khInfos;
        }
        public Boolean updateKhInfo(KhInfo kh)
        {
            Boolean aBoolean = khInfoDao.updateKhInfo(kh);
            return aBoolean;
        }
}
